#include <stdio.h> 

/* Simple program that prints a conversion table for celcius <-> fahrenheit
   v0.2.1 (see changelog.txt) */
main() 
{ 
  float fahr, celsius; 
  int lower, upper, step; 

  lower = 0;	/* lower limit in units of fahrenheit */ 
  upper = 300;	/* upper limit in units of fahrenheit */
  step = 20;	/* step size, 20 gives 300/20 + 1 = 16 different temperatures */

  printf("Fahrenheit \t Celcius\n");

  fahr = lower; 
  while (fahr <= upper) { 
      celsius = 5/9. * (fahr-32);
      printf("%10.0f \t %7.1f\n", fahr, celsius); 
      fahr = fahr + step; 
  } 
} 
